package com.xz.spi.handle;

/**
 * Created by fingal on 2018/1/16.
 */
public abstract class Handler {
    private Handler successor;

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    public Handler getSuccessor() {
        return this.successor;
    }

    public abstract void handleRequest(int leave);
}